///////////////////////////////////////////////
///      Product Name: WordQuicker          ///
/// Copyright (c)2007, Marstone Studio      ///
///           Author: marstone              ///
///        Web Site: marstone.net           ///
///      Mail/MSN: marstone@163.com         ///
///         Created: 2007.10.02             ///
///      Last Modified: 2007.10.02          ///
///////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
using Word = Microsoft.Office.Interop.Word;

namespace Studio.Windows.WordQuicker
{
    /// <summary>
    /// Table operations in Word Document
    /// </summary>
    public interface WQTable
    {
        /// <summary>
        /// Table width
        /// </summary>
        int Width { get; }

        /// <summary>
        /// Table height
        /// </summary>
        int Height { get; }

        /// <summary>
        /// Fill a Table Cell by specified Coordinate (Row, Column)
        /// Warning :  you must give row first and then calculate the column
        /// if column given first, there would be something wrong
        /// </summary>
        void FillCell(int Row, int Column, string TextToFill);

        /// <summary>
        /// return the text in the Cell
        /// </summary>
        string ReadCell(int Row, int Column);
        
        /// <summary>
        /// Append a row, which use the last row's format
        /// </summary>
        void AppendRow();

        /// <summary>
        /// Get given row's CellCount
        /// </summary>
        int CellCountInRow(int Row);

        /// <summary>
        /// Get given column's CellCount
        /// </summary>
        int CellCountInColumn(int Column);
    }
}
